﻿/*
 * Last review by   : Yaser
 * Last review date : JUL-20-09 
 */
using System;
using System.Collections;

namespace ERP.Business.DataTypes.BaseTypes
{
    /// <summary>
    /// Basic interfaces that should be implemented
    /// </summary>
    internal interface IBaseType : IComparable, IComparer, IDisposable, ICloneable
    {
        #region Properties

        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [System.Runtime.Serialization.DataMember]
        Guid ID
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the dirty flag.
        /// </summary>
        /// <value>The dirty flag.</value>
        [System.Runtime.Serialization.DataMember]
        DirtyFlag DirtyFlag
        {
            get;
            set;
        }

        #endregion

        #region Methods

        /// <summary>
        /// Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="disposeManagedResources"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        void Dispose(bool disposeManagedResources);

        #endregion
    }
}
